<?php

namespace app\api\model\event;
use app\api\model\BaseModel;

class Product extends BaseModel
{
    protected $table = 'product';
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = 'datetime';

    public function material(){
        return $this->hasMany(Material::class,'id','material_ids');
    }
}
